<?php
namespace Home\Controller;
use Think\Controller;

class TipsController extends Controller {
    function tips(){
		include ('top.php');
    	$this->display();
    }
    function error() {
    	include ('top.php');
    	$this->display();
    }
    function mark() {
    	$t_number = session('t_number');
    	if ($t_number == false) {
    		$this->redirect('Manager/login');
    	} else {
    		$mark = D('Student')->where('t_number=' . $t_number)->find();
    		$this->assign('mark',$mark);
    		$this->display();
    	}
    }
}